package com.java_foundation.thread_demo.test_7;

/**
 * @program: java_foundation
 * @description: 测试
 * @author: xiongbangwen <Email>xiongbangwen@163.com</Email>
 * @create: 2020-06-21 17:42
 **/
public class Test {
    public static void main(String[] args) throws InterruptedException {
        NotifyDemo nd = new NotifyDemo();
        //启动线程
        nd.threadA.start();
        nd.threadB.start();
        Thread.sleep(1000);
        nd.threadC.start();

        //等待线程结束
        nd.threadA.join();
        nd.threadB.join();
        nd.threadC.join();
        System.out.println("程序结束");
    }
}
